<?php
require('fun.php');
header('Content-type: text/plain');
$aa = array();
$bb = '1';
if (isset($_GET["id"])) $bb = $_GET["id"];
if (strlen($bb)>=2) {
$aa = array('max_id'=>($bb-1));
}
$data = $connection->get('statuses/'.(isset($_GET['replies'])?'mentions':'user_timeline'), $aa);
$dddd='';
foreach ($data as $entry) { 
$dddd = $entry->id;
if ($entry->user->screen_name==TheID) $entry->user->screen_name = '';
include('bin/tweet.php');
}
if (count($data)>0) { ?>
<tr id="moredata"><td onClick="loadmore('<?php echo $dddd; ?>');">点击载入更多内容</td></tr>
<?php /*
<tr>
<td class="meta">发布于<?php echo $entry->created_at; ?></td>
<td class="action"><a href="del.php?id=<?php echo $entry->id; ?>">删除</a></td>
</tr>
<tr><td colspan="3" class="justspace"></td></tr>*/
} else {
?>
<tr id="moredata"><td><script language="javascript">alert("已经到尽头了哦");</script>没有内容了</td></tr>
<?php } ?>